objs = beep.o csb.o network.o sg90.o uart.o main_server.o


server:$(objs) 
	gcc $(objs)  -o server

beep.o:beep.c 
	gcc -c beep.c -lwiringPi

csb.o:csb.c
	gcc -c csb.c -I/home/orangepi/workspace/wiringPiFromWindows/wiringOP-master/wiringPi
  
network.o:network.c
	gcc -c network.c  

sg90.o:sg90.c beep.h
	gcc -c sg90.c  -I/home/orangepi/workspace/wiringPiFromWindows/wiringOP-master/wiringPi -lsqlite3

uart.o:uart.c
	gcc -c uart.c

main_server.o:main_server.c beep.h csb.h network.h uart.h sg90.h 
	gcc -c main_server.c -I/home/orangepi/workspace/wiringPiFromWindows/wiringOP-master/wiringPi -lpthread -lsqlite3